<template>
    <p v-show="show">通过V-Show控制显示</p>
    <button @click="show =!show">切换显示</button>
</template>
<script setup>
import { ref } from 'vue'

const show = ref(true)
</script>